/*
 * 用户基础类
 * @author: huangzong
 */
import C from '@/common/common.js'

class Account {
  /*
   * 打开基础设置页面
   */
  async openAddAccount (row) {
    return await C.openBrowserWindow('/addAccount', row, {
      transparent: true,
      frame: false,
      // openDevTools: true,
      width: 700,
      height: 500,
      useSpa: false,
      spaModel: 'shop'
    })
  }

  /*
   * 编辑账户信息
   */
  async addEditAccount (data) {
    return await C.ajax('/shop/account/addedit', data, 'post')
  }
}

export default new Account()
